ngl: implement atlas compaction
authorChristian Hergert <chergert@redhat.com>
Fri, 19 Mar 2021 00:53:37 +0000 (17:53 -0700)
committerChristian Hergert <chergert@redhat.com>
Fri, 19 Mar 2021 00:59:56 +0000 (17:59 -0700)
commitaf80f3a9765df5a2b09e99dc43f6a8b9f2b52819
tree5033869c5e6eea496070f73e7d0b2a91397b84b8
parent1536f6a59c747fbc4f89cd263d22d1399d01807e
ngl: implement atlas compaction

This required finishing up the begin_frame/end_frame semantics for
GskNglTextureLibraryw which was apparently overlooked.

The driver was changed to provide more information to the library when
beginning frames. We do not need to use end_frame so that was removed.

The frame age is the same as GL (60) but I do wonder if that is based
on seconds if we should be using something longer for situations where
we have higher frame rates.

Fixes #3771
gsk/ngl/gskngldriver.c
gsk/ngl/gskngltexturelibrary.c
gsk/ngl/gskngltexturelibraryprivate.h